package db;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import com.dianjing.dianqun.utils.FileUtils;

/**  
 *  @date  : 2017年12月8日
 *  
 *  @author: baoyongtao 
 *  
 *  @see :  
 *   
 */
public class SrtDeme {

	static File cn =new File("d:/cn.txt");
	static File en =new File("d:/en.txt");
	public static void main(String[] args) throws Exception {
		List<String> cnList = FileUtils.readLines(cn, "GBK");
		List<String> enList = FileUtils.readLines(en, "UTF-8");
		List<String> enAddList=new ArrayList<>();
		for (String ens : enList) {
			if(ens.length()>1) {
				enAddList.add(ens.substring(32));
			}
		}
		for (int i = 1; i < cnList.size(); i++) {
			if(i%4==2) {
				String string =enAddList.get(i/4)+"\r"+ cnList.get(i);
				cnList.set(i, string);
			}
		}
		FileUtils.writeLines(new File("d:/real.txt"), cnList, false);
	}
}
